package com.haiyu.manager.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "worker")
public class Worker {
    @Column(name = "id")
    private Integer id;
    @Column(name = "openid")
    private  String openId;
    //private String buyerOpenid;
    @Column(name = "name")
    private String name;
    @Column(name = "phone")
    private String phone;
    @Column(name = "status")
    private Integer status;
    @Column(name = "create_time10")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime10;
    @Column(name = "update_time10")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  updateTime10;
    @Column(name = "score")
    private BigDecimal score;
    @Column(name = "picture")
    private String picture;
    @Column(name = "is_allowed")
    private  Integer isAllowed;

}
